/********************************************************************
Name: Table A7: Effect of Democratic Sheriff on ICE Arrests, 
	2017 and 2018
Author: Dan Thompson
Date: August 2019
Notes:
********************************************************************/

* Set the working directory 
gl root = "$sanctuary_root"
gl root = "YOUR_WORKING_DIRECTORY"

* Bring in the Trump analysis data
use "$root/data/trump era rd analysis data.dta", clear

* Column 1
reg arrests_per1k1 treat rv treat_rv if abs(rv)<10, vce(clust election_id)

* Column 2
reg arrests_per1k1 treat rv rv2 rv3 if abs(rv)<25, vce(clust election_id)

* Column 3
reg arrests_per1k1 treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 if abs(rv)<25, vce(clust election_id)

* Column 4
reg arrests_per1k1 treat rv rv2 rv3 rv4 rv5 if abs(rv)<25, vce(clust election_id)

* Column 5
reg arrests_per1k1 treat rv treat_rv arrests_per1k0 if abs(rv)<10, vce(clust election_id)

* Column 6
reg arrests_per1k1 treat rv rv2 rv3 arrests_per1k0 if abs(rv)<25, vce(clust election_id)

* Column 7
reg arrests_per1k1 treat rv rv2 rv3 treat_rv treat_rv2 treat_rv3 arrests_per1k0 if abs(rv)<25, vce(clust election_id)

* Column 8
reg arrests_per1k1 treat rv rv2 rv3 rv4 rv5 arrests_per1k0 if abs(rv)<25, vce(clust election_id)

* Column 9
rdrobust arrests_per1k1 rv, vce(cluster election_id)
